using UnityEngine;
namespace DTFramework.Entity
{
    public abstract class PoiEntityBase : Entity
    {
        [SerializeField] protected Transform m_Point;
        [SerializeField] protected AttachTagBase m_AttachTagBase;
        protected override void OnInit(object userData)
        {
            m_Point = transform.GetChild(0);
            m_AttachTagBase = this.GetComponentInChildren<AttachTagBase>(true);
            base.OnInit(userData);
        }
        protected override void OnShow(object userData)
        {
            base.OnShow(userData);
            m_AttachTagBase?.OnShow();
        }
        protected override void OnHide(bool isShutdown, object userData)
        {
            base.OnHide(isShutdown, userData);
            m_AttachTagBase?.OnHide();
        }
    }
}